package com.fausto.learnimprint.core.controller

import com.fausto.learnimprint.core.model.dto.CommonResult


/**
 *      公告模块
 */

interface AnnouncementModule {

    /**
     *      发布公告
     */

    fun pubAnnouncement(title: String, body: String): CommonResult<Any>

    /**
     *      删除公告
     */
    fun deleteAnnouncement(announcementId: Int): CommonResult<Any>

    /**
     *      更新公告置顶状态
     */
    fun updateAnnouncement(announcementId: Int, top: Int): CommonResult<Any>

    /**
     *      获取公告
     */
    fun getAnnouncement(page: Int, showCount: Int): CommonResult<Any>
}